<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<head>
	 <jsp:include page="head.jsp"></jsp:include>
</head>
<body style= "margin:0px;">
	<form id="slaveAcctform" method="post">
		<input type="hidden" id="acctId" name="id" value=""/>		
	</form>
	<div class="easyui-layout" fit="true">
		<div region="north" border="false">
			<div class="subtitle">从帐号信息</div>
			<div class="toolbar" style="float:center">
				<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="newItem()">新增从帐号</a>
				<a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editItem()">修改从帐号</a>
				<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="delItem()">删除从帐号</a>
				<a href="javascript:advanceQuery()" class="easyui-linkbutton" iconCls="icon-search" plain="true">查询从帐号</a>
			</div>
		</div>
		
		<div region="center" border="false">
			<table id="t-slaveAcct" class="easyui-datagrid"
					url="<c:url value='/permissions/getItemsSlaveAcct.tg'/>"
					singleSelect="true" pagination="true"
					border="false" fit="true">
				<thead>
					<tr>
						<th field="slaveAcctId" width="100" sortable="true">从帐号Id</th>
						<th field="systemName" width="100" sortable="true">从帐号归属系统</th>
						<th field="status" width="50" formatter="statusFormatter">状态</th>
					</tr>
				</thead>
			</table>
		</div>
	</div>
	
	<div id="dlg" style="width:600px;height:400px;"
			class="easyui-dialog" closed="true" modal="true" buttons="#dlg-buttons">
		<div style="padding-left:150px;padding-top:40px;">
			<div style="float:center">
				<form id="myform" method="post" style="margin:0;padding:0">
					<table>
						<tr>
							<td style="width:80px">从帐号ID</td>
							<td><input type="text" id="slaveAcctId" class="easyui-validatebox e-input" name="slaveAcct.slaveAcctId" required="true"></input></td>
						</tr>					
						<tr>
							<td style="width:80px">从帐号系统</td>
							<td><input id="systemId" name="slaveAcct.systemId" class="easyui-combobox" style="width:200px"
							url="<c:url value='/permissions/getSystemsSlaveAcct.tg'/>"
							valueField="id" textField="name"
							required="true" ></input></td>
						</tr>
						<tr>
							<td>从帐号密码</td>
							<td>
								<input type="password" id="passwd" class="e-input" name="slaveAcct.passwd" >
							</td>
						</tr>
						<tr>
							<td>状态</td>
							<td>
							<input id="status" class="easyui-combobox"  name="slaveAcct.status" style="width:200px" 
								required="true" readonly="true" 
								url="<c:url value='/permissions/outDicJsonByNicknameActions.tg?nickName=status'/>"
								valueField="value" textField="name">
							</td>
						</tr>						
						<tr>
							<td>扩展属性1</td>
							<td>
								<input type="text" id="ext1" class="e-input" name="slaveAcct.ext1" >
							</td>
						</tr>
						<tr>
							<td>扩展属性2</td>
							<td>
								<input type="text" id="ext2" class="e-input" name="slaveAcct.ext2" >
							</td>
						</tr>
						<tr>
							<td>扩展属性3</td>
							<td>
								<input type="text" id="ext3" class="e-input" name="slaveAcct.ext3" >
							</td>
						</tr>
						<tr>
							<td>扩展属性4</td>
							<td>
								<input type="text" id="ext4" class="e-input" name="slaveAcct.ext4" >
							</td>
						</tr>
						<tr>
							<td>扩展属性5</td>
							<td>
								<input type="text" id="ext5" class="e-input" name="slaveAcct.ext5" >
							</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>
								<input id="id" name="slaveAcct.id" type="hidden"></input>
								<input id="masterId" name="slaveAcct.masterId" type="hidden"></input>
							</td>
						</tr>
																																								
					</table>
				</form>
			</div>
			<div style="clear:both"></div>
		</div>
		<div id="dlg-buttons" style="text-align:center;">
			<a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="saveItem()">保存</a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">关闭</a>
		</div>
	</div>
	
</body>
